package com.yixun.qfbao.response.login;
/**
 * @author zilong.liu
 * @date 2020-8-3
 * @desc
 *
 */

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class StoreAndGroupListResponse {
	
	private String companyCode;
	
	private Long companyId;
	
	private String storeName;
	
	private long storeId;
	
	private String groupName;
	
	private long groupId;
	
	//门店和组的集合
	private List<StoreAndGroupResponse> storeAndGroupListResponse;

	public List<StoreAndGroupResponse> getStoreAndGroupListResponse() {
		return storeAndGroupListResponse;
	}

	public void setStoreAndGroupListResponse(List<StoreAndGroupResponse> storeAndGroupListResponse) {
		this.storeAndGroupListResponse = storeAndGroupListResponse;
	}
	
	/**
	 * 添加组别的集合
	 * @param storeAndGroupResponse
	 */
	public void addStoreAndGroupResponse(StoreAndGroupResponse storeAndGroupResponse) {
		if(this.storeAndGroupListResponse == null) {
			storeAndGroupListResponse = new ArrayList<>();
		}
		storeAndGroupListResponse.add(storeAndGroupResponse);
	}

	
}
